import request from "@/request/index.js";

export const login = async(data) => {
    return request({
        url: "/login",
        method: "post",
        data,
    });
};

export const getUserInfo = (accessToken) => {
    return request({
        url: "/userInfo",
        method: "get",
        data: { accessToken },
    });
};